//引入axios封装
import request from '@/utils/request'
//获取群聊任务详细
export function getFavorites(params) {
  return request({
    url: '/Favorites/get/Favorites',
    method: 'post',
    data:params
  })
}
//删除群聊任务
export function deleteFavorites(id) {
  return request({
    url: `/Favorites/delete/Favorites/${id}`,
    method: 'post',
  })
}
//新增群聊任务
export function insertFavorites(params) {
  return request({
    url: `/Favorites/insert/Favorites`,
    method: 'post',
    data:params
  })
}
//修改群聊任务
export function updateFavorites(params) {
  return request({
    url: `/Favorites/update/Favorites`,
    method: 'post',
    data:params
  })
}
